import request from '@/utils/request'

// 查询消耗品库存全量日志列表 (分页)
export function selectPageMaterialStockAllLog(query) {
  return request({
    url: '/material/materialStockAllLog/selectPage',
    method: 'get',
    params: query
  })
}

// 查询消耗品库存全量日志列表 (不分页)
export function listMaterialStockAllLog(query) {
  return request({
    url: '/material/materialStockAllLog/list',
    method: 'get',
    params: query
  })
}

// 查询消耗品库存全量日志详细
export function getMaterialStockAllLog(allLogId) {
  return request({
    url: '/material/materialStockAllLog/' + allLogId,
    method: 'get'
  })
}

// 新增消耗品库存全量日志
export function addMaterialStockAllLog(data) {
  return request({
    url: '/material/materialStockAllLog',
    method: 'post',
    data: data
  })
}

// 修改消耗品库存全量日志
export function updateMaterialStockAllLog(data) {
  return request({
    url: '/material/materialStockAllLog',
    method: 'put',
    data: data
  })
}

// 删除消耗品库存全量日志
export function delMaterialStockAllLog(allLogId) {
  return request({
    url: '/material/materialStockAllLog/' + allLogId,
    method: 'delete'
  })
}
